package com.sky.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class OrdersDTO {
    private Long id;
    private String number;
    private String productName;
    private BigDecimal orderAmount;
    private BigDecimal amount;
    private String paymentMethod;
    private String orderStatus;
    private String orderSource;
    private String contactPerson;
    private String contactPhone;
    private String customerName;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "GMT+8")
    private LocalDateTime orderTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "GMT+8")
    private LocalDateTime createTime;
    
    private String appointmentDate;    // 预约日期
    
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS", timezone = "GMT+8")
    private LocalDateTime updateTime;
    private Integer status;
    private Integer payStatus;
    private Long userId;
}